﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Diplom.Graphics.D3D.Helpers
{
    /// <summary>
    /// "3х-мерная" точка
    /// </summary>
    public class Point3D
    {
        #region Fields

        double x;
        double y;
        double z;

        #endregion

        #region Parameters

        public double X
        {
            get
            {
                return x;
            }
            set
            {
                x = value;
            }
        }

        public double Y
        {
            get
            {
                return y;
            }
            set
            {
                y = value;
            }
        }

        public double Z
        {
            get
            {
                return z;
            }
            set
            {
                z = value;
            }
        }

        #endregion

        #region .ctors

        public Point3D()
        {
            this.x = 0;
            this.y = 0;
            this.z = 0;
        }

        public Point3D(double x, double y, double z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }

        public Point3D(Point3D copy)
        {
            this.x = copy.X;
            this.y = copy.Y;
            this.z = copy.Z;
        }


        #endregion
    }
}
